package com.itheima.ydd;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@SpringBootApplication
@MapperScan("com.itheima.ydd.mapper")
@ServletComponentScan//加载过滤器  开启servlet的注解包扫描
@EnableTransactionManagement
@EnableCaching//开启spring cache注解支持
public class YddApplication {
    public static void main(String[] args) {
        SpringApplication.run(YddApplication.class, args);
        log.info("yyd项目启动成功");
    }
}
